/**
 * Created by moon on 2016/12/22
 */
define(["business/services/constant"], function (constant) {
	var postbarhost = constant.config.BASEURL_BOSTBAR;//8086
	var postbarurl = constant.config.CONSTANT_BOSTBAR;//bostbar
	var category = constant.config.CONSTANT_POSTBARCLASS;//分类urlOL
	
	var collection = constant.config.CONSTANT_COLLECTION;// api/collection
	
	var addpraiseurl = constant.config.CONSTANT_reply;
	
	var tagurl = constant.config.CONSTANT_TAG;
	
    return {
        postbarlistHttpService:function(requestion){
            return constant.httpSend(postbarhost, postbarurl,requestion);
        },
		oneclassHttpService:function(requestion){
			return constant.httpSend(postbarhost, category, requestion);
		},
		collectionHttpService:function(requestion){
			return constant.httpSend(postbarhost, collection,requestion);
		},
		getscidHttpService:function(requestion) {
			return constant.httpSend(postbarhost, category, requestion);
		},
		getdcidHttpService:function(requestion) {
			return constant.httpSend(postbarhost, category, requestion);
		},
		addpraiseHttpService:function(requestion) {
			return constant.httpSend(postbarhost, addpraiseurl, requestion);
		},
		gettagHttpService:function(requestion) {
			return constant.httpSend(postbarhost, tagurl, requestion);
		},
    }
});